<template>
  <div>
    <v-touch class="swiper-div" @swiperight="onSwiperRight" :swipe-options="{direction: 'horizontal'}">
      <head-top
          :title="Number(this.$route.params.id) === this.$baseJS.getLoginUser().id ? '个人信息' : '员工账号详情'"
          :right-text="'编辑'"
          :right-router="GLOBAL.pathSetting.profile.edit +  $route.params.id +'?type=1'"
          :right-param="{ id: $route.params.id }"
      ></head-top>
      <profile-info></profile-info>
    </v-touch>
  </div>
</template>

<script>
import ProfileInfo from "@/components/profile/info";
import HeadTop from "@/components/HeadTop";
export default {
  components: {
    ProfileInfo,
    HeadTop,
  },
  name: "ProfileViewInfo",
  mounted() {
  },
  methods: {
    onSwiperRight() {
      this.$router.go(-1)
    }
  },
};
</script>
<style scoped>
</style>